package com.ram.mapper;

import com.ram.pojo.Accommodation;
import com.ram.pojo.AccommodationDTO;
import com.ram.pojo.AccommodationVO;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface AccommodationMapper {
    List<Accommodation> list();
    Accommodation getById(Integer id);
    void insert(Accommodation accommodation);
    void update(Accommodation accommodation);
    void deleteById(Integer id);

    // 分页+条件查询
    List<AccommodationVO> pageQuery(AccommodationDTO dto);
    long countPageQuery(AccommodationDTO dto);
} 